
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Task2
{
    class Task2
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Length of rectangle: ");
            decimal lSide = decimal.Parse(Console.ReadLine());
            Console.WriteLine("Width of rectangle: ");
            decimal wSide = decimal.Parse(Console.ReadLine());

            decimal area1 = (wSide - 3) * 7;

            decimal area2 = (lSide * wSide) - area1 - 4;
            Console.WriteLine("Area of your shape is: {0}", area2);
        }
    }
}
